package com.blog.personalblog.mapper;

import com.blog.personalblog.entity.ArticleTag;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleTagMapper {
    int insertBatch(@Param("articleTagList") List<ArticleTag> articleTagList);

    void deleteByArticleId(@Param("articleId") Integer articleId);

    List<ArticleTag> getArticleTagById(@Param("articleId") Integer articleId);
}
